package ReflectionBasedSerde;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;

public class Zoo {
    String name;
    String city;
    int no = 0;
    Animal[] contains = new Animal[5];

    public Zoo(String name, String city) {
        this.name = name;
        this.city = city;
    }

    public void add(Animal a) {
        contains[no] = a;
        no++;
    }
}
